package com.gxw.kotlint.presenter

import com.gxw.kotlint.model.LoginModel
import com.gxw.kotlint.model.bean.params.LoginParams
import com.gxw.kotlint.model.bean.response.LoginResponse
import com.gxw.kotlint.ui.view.LoginView
import org.jetbrains.anko.async
import retrofit2.Callback

/**
 * Created by Administrator on 2016/5/2.
 */
class LoginPresenter {

    var loginModel:LoginModel =LoginModel()
    //可為空
    var loginView:LoginView?=null

    constructor( loginView: LoginView?) {
        this.loginModel = LoginModel()
        this.loginView = loginView
    }

    fun initLogin(loginParams: LoginParams){
//        loginModel.
//        var callBack:Callback<LoginResponse> = retrofit2.Callback<LoginResponse>() {
//
//
//
//        }
//        loginModel.initLogin(loginParams).enqueue(retrofit2.Callback<LoginResponse>(){
//
//        });

//        loginModel.initLogin(loginParams).enqueue()

    }


}